<template>
  <div class="home">
    <img alt="Vue logo" src="~@/assets/logo.png">
    <div>
      <el-button @click="getStoreList">接口测试-GET</el-button>
      <el-button @click="updateMessage">接口测试-POST</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Home',
  components: {
  },
  created() {},
  methods: {
    // 获取店铺列表
    async getStoreList() {
      const params = { busId: 333333 };
      const config = { timeout: 888 };
      const { data } = await this.$api.getStoreList(params, config);
      if (data.code === 0) {
        console.log('data.data :>> ', data.data);
        this.$message.success('请求成功');
      }
    },
    // 提交备注
    async updateMessage() {
      const params = {
        busMessage: '324232',
        orderId: 85915312015127,
      };
      const config = { timeout: 9999 };
      const { data } = await this.$api.order.updateMessage(params, config);
      if (data.code === 0) {
        this.$message.success('请求成功');
      }
    },
  },
};
</script>
